<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="mainMenu" />
<meta name="nav" content="0" />
<meta name="acc" content="3" />
<title>权限管理</title>
<script type="text/javascript">
	$(document).ready(function(){
		$("#addAuthority").click(function(){
			location.href="${ctx}/account/authority!input.action";
		});
	});
</script>
</head>
<body>
<form action="authority.action" method="post" class="yform"
	id="mainForm">
<div>
<table>
	<tr>
		<th>权限名称</th>
		<th>权限操作</th>
	</tr>
	<c:forEach items="${page.result}" var="authority">
		<tr>
			<td>${authority.autName }</td>
			<td>
				<a href="authority!input.action?id=${authority.id }">修改</a>&nbsp;
			   <a href="authority!delete.action?id=${authority.id }">删除</a>
			</td>
		</tr>
	</c:forEach>
</table>
</div>
<div id="pagebar">第${page.pageNo}页, 共${page.totalPages}页 <a
	href="javascript:jumpPage(1)">首页</a> <s:if test="page.hasPre">
	<a href="javascript:jumpPage(${page.prePage})">上一页</a>
</s:if> <s:if test="page.hasNext">
	<a href="javascript:jumpPage(${page.nextPage})">下一页</a>
</s:if> <a href="javascript:jumpPage(${page.totalPages})">末页</a> 
</div>
<div class="type-button"><input id="addAuthority"
	 		type="button" class="add" value="新增" /> 
		</div>
</form>
</body>
</html>